//
//  TTWebViewController.h
//  Tint
//
//  Created by Kevin Wu on 2/28/12.
//  Copyright (c) 2012 Telligenty. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#import "TTCore.h"
#import "TTAdditions.h"
#import "TTBasic.h"
#import "TTViewController.h"


@interface TTWebViewController : TTViewController<UIWebViewDelegate, UIActionSheetDelegate> {
    // Views
    UIWebView *_webView;
    UIToolbar *_toolbar;
    UIActionSheet *_actionSheet;
    
    // Toolbar items
    UIBarButtonItem *_backBarButtonItem;
    UIBarButtonItem *_forwardBatButtonItem;
    UIBarButtonItem *_refreshBarButtonItem;
    UIBarButtonItem *_stopBarButtonItem;
    UIBarButtonItem *_actionBarButtonItem;
    
    // NavigationBar items
    UIBarButtonItem *_activityBarButtonItem;
    
    NSURL *_actionSheetURL;
    NSURL *_loadingURL;
}


- (id)initWithURL:(NSURL *)URL;

- (NSURL *)URL;
- (void)openURL:(NSURL *)URL;
- (void)openRequest:(NSURLRequest *)request;

- (BOOL)shouldPresentActionSheet:(UIActionSheet *)actionSheet;
- (void)clickedActionSheetButtonAtIndex:(NSInteger)buttonIndex;

@end
